<form class="layui-form modal-form-box" action="__SELF__" data-auto="true" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">套餐名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" value="{$vo.name}" placeholder="请输入套餐名称" required title="请输入套餐名称" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">套餐价格</label>
        <div class="layui-input-block">
            <input type="text" name="price" value="{$vo.price}" placeholder="请输入套餐价格" required title="请输入套餐价格" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">套餐描述</label>
        <div class="layui-input-block">
            <textarea name="description" class="layui-textarea" required id="editor" style="height: 300px;">{$vo.description}</textarea>
        </div>
    </div>

    <div class="layui-form-item text-center">
        <input type="hidden" name="id" value="{$vo.id|default=''}">
        <button class="layui-btn">保存数据</button>
        <button class="layui-btn layui-btn-primary" type="button" data-close>取消编辑</button>
    </div>
</form>

<script>
    require(['ckeditor'], function() {
        window.createEditor('#editor', {height: 300});
    });
</script>